package org.jeecg.modules.bigdatashow.controller;

import org.jeecg.modules.bigdatashow.entity.PieChart;
import org.jeecg.modules.bigdatashow.service.ScenicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value="/scenic",produces="application/json; charset=utf-8")
public class ScenicController {
    @Autowired
    ScenicService scenicService;

    @GetMapping(value="/findAllEmploy")
    public PieChart findAllEmploy() {
        PieChart pc = scenicService.findAllEmploy();
        return pc;
    }

    @GetMapping(value="/findDepartments")
    public List findDepartments() {
        List list = scenicService.findDepartments();
        return list;
    }

    @GetMapping(value="/findAgeType")
    public List findAgeType() {
        List list = scenicService.findAgeType();
        return list;
    }

    @GetMapping(value="/findAttendance")
    public List findAttendance() {
        List list = scenicService.findAttendance();
        return list;
    }

    @GetMapping("/findWorker")
    public List findWorker() {
        List list = scenicService.findWorker();
        return list;
    }

    @GetMapping("/findTable")
    public List findTable() {
        List list = scenicService.findTable();
        return list;
    }

    @GetMapping("/findPorp")
    public List findPorp() {
        List list = scenicService.findPorp();
        return list;
    }
}
